import {TicketComponent} from './ticket/ticket.component';
import {NgModule} from '@angular/core';
import {Routes, RouterModule} from "@angular/router";
import {SignUpPersonalProgressComponent} from '@sign-up/personal/sign-up-personal-progress/sign-up-personal-progress.component';
import {SignUpProtocolComponent} from '@protocol/sign-up-protocol/sign-up-protocol.component';
import {SignUpComponent} from "@sign-up/sign-up.component";
import {TicketerFormComponent} from "@sign-up/ticket/ticketer-form/ticketer-form.component";
import {SignUpGroupMatchComponent} from "@sign-up/group/group-match/sign-up-group-match.component";
import {SignUpReplaceMacthComponent} from "@sign-up/replace/replace-match/sign-up-replace-match.component";
import {SignUpPersonalComponent} from "@sign-up/personal/sign-up-personal.component";
import {SignUpGroupComponent} from "@sign-up/group/sign-up-group.component";
import {SignUpReplaceComponent} from "@sign-up/replace/sign-up-replace.component";
import {SignUpChooseClubComponent} from "@sign-up/group/sign-up-choose-club/sign-up-choose-club.component";
import {SignUpCreateClubComponent} from "@sign-up/group/sign-up-create-club/sign-up-create-club.component";
import {SignUpPersonalMatchComponent} from "@sign-up/personal/personal-match/personal-match.component";
import {SignUpMultipleComponent} from "@sign-up/multiple-member/sign-up-multiple-member.component";
import {SignUpMultipleMatchComponent} from "@sign-up/multiple-member/multiple-member-match/multiple-member-match.component";
import {SignUpTraditionalMatchComponent} from "@sign-up/group/sign-up-traditional-match/sign-up-traditional-match.component";
import {SignUpDoubleMatchComponent} from "@sign-up/multiple-member/sign-up-double-match/sign-up-double-match.component";
import {OrganizationServeProtocolComponent} from "@protocol/organization-serve-protocol/organization-serve-protocol.component";
import {SignUpTrainComponent} from "@sign-up/personal/train/train.component";

const routes: Routes = [
  {
    path: '',
    component: SignUpComponent,
    children: [
      {
        path: 'personal',
        component: SignUpPersonalComponent,
        children: [
          {
            path: 'match',
            component: SignUpPersonalMatchComponent
          },
          {
            path: 'train',
            component: SignUpTrainComponent
          },
          {
            path: 'progress',
            component: SignUpPersonalProgressComponent
          },
        ]
      },
      {
        path: 'group',
        component: SignUpGroupComponent,
        children: [
          {
            path: 'match',
            component: SignUpGroupMatchComponent
          },
          {
            path: 'double-match',
            component: SignUpTraditionalMatchComponent
          },
          {
            path: 'choose-club',
            component: SignUpChooseClubComponent
          },
          {
            path: 'create-club',
            component: SignUpCreateClubComponent
          }
        ]
      },
      {
        path: 'replace',
        component: SignUpReplaceComponent,
        children: [
          {
            path: 'match',
            component: SignUpReplaceMacthComponent
          }
        ]
      },
      {
        path: 'multiple-member',
        component: SignUpMultipleComponent,
        children: [
          {
            path: 'match',
            component: SignUpMultipleMatchComponent
          },
          {
            path: 'double-match',
            component: SignUpDoubleMatchComponent
          },
        ]
      },
      {
        path: 'sign-up-protocol',
        component: SignUpProtocolComponent
      },
      {
        path: 'ticket',
        component: TicketComponent,
        children: [
          {
            path: 'ticketer-form',
            component: TicketerFormComponent
          }
        ]
      },
      {
        path: 'protocol/organization',
        component: OrganizationServeProtocolComponent
      }
    ]
  },

];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})

export class SignUPRoutingModule {
}
